<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ACER
  Date: 2017/6/9
  Time: 12:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body style="background: rgba(180, 248, 128, 0.77)">
<jsp:include page="/index.jsp"></jsp:include>


<table  style="font-size: 25px" border="1px">
  <tr>
    <th>课程号</th>
    <th>课程名</th>
    <th>学分</th>
    <th>操作</th>
  </tr>
<c:forEach items="${courseList}" var="course">
  <tr>
    <td>${course.courseNo}</td>
    <td>${course.courseName}</td>
    <td>${course.courseCredit}</td>
    <td>
      <a href="${pageContext.request.contextPath}/course/update?courseNo=${course.courseNo}&&courseName=${course.courseName}&&courseId=${course.courseId}&&courseCredit=${course.courseCredit}">更新</a>
    </td>
  </tr>

</c:forEach>
  <tr align="center">
    <td colspan="4"><a href="${pageContext.request.contextPath}/course/add">添加课程</a></td>
  </tr>
</table>
</body>
</html>
